﻿#include "QCefBrowserProcessHandler.h"

#include "QCefContext.h"

QCefBrowserProcessHandler::QCefBrowserProcessHandler()
{
    QCEF_DEBUG();
}


QCefBrowserProcessHandler::~QCefBrowserProcessHandler()
{
    QCEF_DEBUG();
}


//////////////////////////////////////////////////////////////////////////
//CefBrowserProcessHandler
void QCefBrowserProcessHandler::OnScheduleMessagePumpWork(int64 delay_ms)
{
    //QCEF_DEBUG();

    QCefContext * ctx = QCefContext::instance();
    if (ctx != nullptr)
    {
        QCefWinMsgLoop * msgLoop = QCefWinMsgLoop::instance();
        if (msgLoop != nullptr)
        {
            msgLoop->OnScheduleMessagePumpWork(delay_ms);
        }
    }

}

